package com.xianzhiOA.bean;/**
 * Created by Administrator on 2017/5/4.
 */

import org.hibernate.validator.constraints.NotEmpty;

import javax.swing.event.ListDataEvent;
import javax.validation.GroupSequence;
import java.util.Date;
import java.util.List;

/**
 * 申请模板表
 *
 * @author 王诗博
 * @create 2017-05-04 17:18
 **/
public class XzTempletBase {

    private long templetBaseId;
    @NotEmpty(message="模板名称:不能为空",groups = {XzTempletBase.F1.class})
    private String templetName;
    private String oleTempletName;  //修改时，来验证是否修改了重复的模板名称
    private String field1;
    private String field2;
    private String field3;
    private Date deleteTime;
    private  Integer isdelete;
    private  Date    createTime;
    private List extendTypeList;
    private List nodeList;
    private List<XzTempletExtend> extendObjectList;
    private List<XzApprovalProcess>  nodeObjectList;

    public long getTempletBaseId() {
        return templetBaseId;
    }

    public void setTempletBaseId(long templetBaseId) {
        this.templetBaseId = templetBaseId;
    }

    public String getTempletName() {
        return templetName;
    }

    public void setTempletName(String templetName) {
        this.templetName = templetName;
    }

    public String getOleTempletName() {
        return oleTempletName;
    }

    public void setOleTempletName(String oleTempletName) {
        this.oleTempletName = oleTempletName;
    }

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List getExtendTypeList() {
        return extendTypeList;
    }

    public void setExtendTypeList(List extendTypeList) {
        this.extendTypeList = extendTypeList;
    }

    public List getNodeList() {
        return nodeList;
    }

    public void setNodeList(List nodeList) {
        this.nodeList = nodeList;
    }

    public List<XzTempletExtend> getExtendObjectList() {
        return extendObjectList;
    }

    public void setExtendObjectList(List<XzTempletExtend> extendObjectList) {
        this.extendObjectList = extendObjectList;
    }

    public List<XzApprovalProcess> getNodeObjectList() {
        return nodeObjectList;
    }

    public void setNodeObjectList(List<XzApprovalProcess> nodeObjectList) {
        this.nodeObjectList = nodeObjectList;
    }

    @Override
    public String toString() {
        return "XzTempletBase{" +
                "templetBaseId=" + templetBaseId +
                ", templetName='" + templetName + '\'' +
                ", oleTempletName='" + oleTempletName + '\'' +
                ", field1='" + field1 + '\'' +
                ", field2='" + field2 + '\'' +
                ", field3='" + field3 + '\'' +
                ", deleteTime=" + deleteTime +
                ", isdelete=" + isdelete +
                ", createTime=" + createTime +
                ", extendTypeList=" + extendTypeList +
                ", nodeList=" + nodeList +
                ", extendObjectList=" + extendObjectList +
                ", nodeObjectList=" + nodeObjectList +
                '}';
    }



    //验证分组1(不能为空)
    public  interface  F1{
    }
    //验证分组2（不能重复）
    public  interface  F2{
    }

    //序列组
    @GroupSequence( { XzEmp.F1.class, XzEmp.F2.class })

    public  interface  Group{
    }



}
